/* test_tstream.cc
* This file is part of ncursesxx library
* Copyright (c) 2003,2004 by Stanislav Ievlev
*
* This file is covered by the GNU Library General Public License,
* which should be included with libncursesxx as the file COPYING.
*/
#include <unistd.h>
#include <iostream>
#include <stdexcept>
#include <ncurses/tstream.hh>

int
main()
{
	ncurses::otstream os(STDOUT_FILENO);
	os << "normal\n";
	os.set_fg_color(COLOR_YELLOW);
	os << "yellow\n";
	os.set_fg(COLOR_RED, A_UNDERLINE);
	os << "red underline\n";
	os.set_fg_color(COLOR_BLUE);
	os << "blue underline and";
	os.set_attr();
	os << "normal attr\n";
}
